﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.IntegrationManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ReportManagement
{
    public partial class IntgrSyncRemoteListVM : BasePagedListVM<IntgrSyncRemote_View, IntgrSyncRemoteSearcher>
    {
        
        protected override IEnumerable<IGridColumn<IntgrSyncRemote_View>> InitGridHeader()
        {
            return new List<GridColumn<IntgrSyncRemote_View>>{
                
                this.MakeGridHeaderAction(width: 200).SetHide(true)
            };
        }

        
        public override IOrderedQueryable<IntgrSyncRemote_View> GetSearchQuery()
        {
            var query = DC.Set<IntgrSyncRemote>()
                                .Select(x => new IntgrSyncRemote_View
                {
				    ID = x.ID,
                                    })
                .OrderBy(x => x.ID);
            return query;
        }

        
    }
    public class IntgrSyncRemote_View: IntgrSyncRemote
    {
        
    }

}